package com.tuanzi.loan.web.lazy.galaxycard;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.galaxycard.GalaxyCardOrderStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardOrderStatRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardOrderStatResponse;

public class GalaxyCardOrderStatLazyDataModel extends BaseLazyDataModel<GalaxyCardOrderStatRequest, GalaxyCardOrderStatResponse> {

	private static final long serialVersionUID = 6230914448377812089L;
	
	private GalaxyCardOrderStatService galaxyCardOrderStatService = SpringContextHolder.getBean(GalaxyCardOrderStatService.class);

	public GalaxyCardOrderStatLazyDataModel(GalaxyCardOrderStatRequest request) {
		super(request);
	}

	@Override
	protected Page<GalaxyCardOrderStatResponse> doLoad(
			PageSearcher<GalaxyCardOrderStatRequest> pageSearcher) {
		return galaxyCardOrderStatService.list(pageSearcher);
	}

}
